<?php
include("./config.php");
include("./utils.php");
?>
<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title>快捷键大全</title>
  <?php include 'scripts-inc.php' ?>
  
  <script>

var get_data = function(lang, op){
  var u = 'query.php?op='+op;
  if(lang) u = u + '&lang='+lang;
  $.ajax({url:u,
    dataType:"json",
    async:true,
    success : function(msg, textStatus) {
      var data = msg;
      if(data){
        gAllApp = data;
        gen_home_page(gLang);
      }
    }
  },"text");
}

var gLang = "<?php echo getFromMap($_GET, 'lang', 'cn'); ?>";

  $(function(){

    $("#search-container").show();
    get_data(gLang, 'all-app');

  });//end of $(function(){
  </script>
</head>
<body>

<div id="wrapper">
<div id="container">

<div id="nav_data_src">
  <?php include 'navbars-inc.php' ?>
</div>

<div id="search-result">
</div>

<div class="clearfix"></div>
</div><!-- end of search-container -->

<div class="clearfix"></div>

<div id="content" class="container-fluid">
  <div id="result" class="form-group row">
    <span id="lang-loading">载入中...</span>
  </div>
  <div class="clearfix"></div>
</div>

<!-- .................................................... -->
</div><!-- end of container -->
</div><!-- end of wrapper -->
<div id="hide-result"> </div>
</body>
</html>
